package com.api.shopapi.service;

import com.api.shopapi.entity.DiseaseType;
import com.api.shopapi.entity.dto.DeviceTogWatchDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DiseaseTypeService {

    int insert(DiseaseType diseaseType);

    int update(DiseaseType diseaseType);

    DiseaseType getByDiseaseTypeCode(String diseaseTypeCode);

    DiseaseType getByDiseaseTypeName(String diseaseTypeName);

    List<DiseaseType> listByInsCode(String institutionCode);


    PageInfo<DiseaseType> pageByInsCode(int pageIndex, int pageSize, String institutionCode);

    PageInfo<DiseaseType> pageByGovCode(int pageIndex, int pageSize, String govCode);


}
